import csv
fo=open("xiaofei.csv","r")
with open('xiaofei.csv',newline='')as csvfile:
    reader=csv.DictReader(csvfile)
    data=list(reader)
search_key=input("请输入要查找的项目:")
for row in data:
    if search_key in row.keys():
        print('{}:{}'.format(search_key,row[search_key]))
